Simplify the code more.

Fix the [un]install targets.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3662 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Enrico Tröger 2009-03-27 15:39:36 +00:00
parent f5de9e047e
commit 1d7a1226c4

View File

@ -16,13 +16,21 @@ cat > Makefile << EOF
all: build all: build
build: build:
@$WAF build \$@ @$WAF build
install: install:
@$WAF install \$@ @if test -n "\$(DESTDIR)"; then \\
./waf install --destdir="\$(DESTDIR)"; \\
else \\
./waf install; \\
fi;
uninstall: uninstall:
@$WAF uninstall @if test -n "\$(DESTDIR)"; then \\
$WAF uninstall --destdir="\$(DESTDIR)"; \\
else \\
$WAF uninstall; \\
fi;
clean: clean:
@$WAF clean @$WAF clean
@ -38,49 +46,23 @@ apidoc:
@$WAF --apidoc @$WAF --apidoc
configure: configure:
@$WAF configure \$@ @$WAF configure
EOF EOF
# src/Makefile template="
cat > src/Makefile << EOF
all: build all: build
build: build:
cd .. && $WAF build \$@ cd .. && $WAF build
EOF "
# tagmanager/Makefile echo "$template" > src/Makefile
cat > tagmanager/Makefile << EOF echo "$template" > tagmanager/Makefile
echo "$template" > scintilla/Makefile
echo "$template" > plugins/Makefile
all: build
build:
cd .. && $WAF build \$@
EOF
# scintilla/Makefile
cat > scintilla/Makefile << EOF
all: build
build:
cd .. && $WAF build \$@
EOF
# plugins/Makefile
cat > plugins/Makefile << EOF
all: build
build:
cd .. && $WAF build \$@
EOF
# configure # configure
cat > configure << EOF cat > configure << EOF