Kaydet (Commit) 1d7a1226 authored tarafından Enrico Tröger's avatar Enrico Tröger

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
üst f5de9e04
......@@ -16,13 +16,21 @@ cat > Makefile << EOF
all: build
build:
@$WAF build \$@
@$WAF build
install:
@$WAF install \$@
@if test -n "\$(DESTDIR)"; then \\
./waf install --destdir="\$(DESTDIR)"; \\
else \\
./waf install; \\
fi;
uninstall:
@$WAF uninstall
@if test -n "\$(DESTDIR)"; then \\
$WAF uninstall --destdir="\$(DESTDIR)"; \\
else \\
$WAF uninstall; \\
fi;
clean:
@$WAF clean
......@@ -38,49 +46,23 @@ apidoc:
@$WAF --apidoc
configure:
@$WAF configure \$@
@$WAF configure
EOF
# src/Makefile
cat > src/Makefile << EOF
template="
all: build
build:
cd .. && $WAF build \$@
EOF
cd .. && $WAF build
# tagmanager/Makefile
cat > tagmanager/Makefile << EOF
"
all: build
build:
cd .. && $WAF build \$@
EOF
# scintilla/Makefile
cat > scintilla/Makefile << EOF
all: build
echo "$template" > src/Makefile
echo "$template" > tagmanager/Makefile
echo "$template" > scintilla/Makefile
echo "$template" > plugins/Makefile
build:
cd .. && $WAF build \$@
EOF
# plugins/Makefile
cat > plugins/Makefile << EOF
all: build
build:
cd .. && $WAF build \$@
EOF
# configure
cat > configure << EOF
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment