--- Makefile.orig 2003-08-02 09:38:53.000000000 +0800 +++ Makefile 2003-08-02 09:42:05.000000000 +0800 @@ -1,7 +1,4 @@ - -CC=gcc -LD=ld -CFLAGS=-Wall +DESTDIR= default: cd src && make @@ -18,9 +15,10 @@ @mv src/gtkasp2php . install: - @if [ -e asp2php ]; then install asp2php /usr/local/bin; fi; - @if [ -e gtkasp2php ]; then install gtkasp2php /usr/local/bin; fi; - @echo "Compiled programs have been installed in /usr/local/bin" + @mkdir -p $(DESTDIR)/bin; + @if [ -e asp2php ]; then install asp2php $(DESTDIR)/usr/bin; fi; + @if [ -e gtkasp2php ]; then install gtkasp2php $(DESTDIR)/usr/bin; fi; + @echo "Compiled programs have been installed in $(DESTDIR)/usr/bin" @echo "" uninstall: --- src/Makefile.orig 2003-08-02 09:48:07.000000000 +0800 +++ src/Makefile 2003-08-02 09:48:20.000000000 +0800 @@ -1,9 +1,3 @@ - -CC=gcc -LD=ld -#FLAGS=-DDEBUG -CFLAGS=-Wall - default: @cd jscript && make $(CC) -c class.c $(CFLAGS) $(FLAGS) --- src/jscript/Makefile.orig 2003-08-02 09:49:43.000000000 +0800 +++ src/jscript/Makefile 2003-08-02 09:49:46.000000000 +0800 @@ -1,9 +1,3 @@ - -CC=gcc -LD=ld -#FLAGS=-DDEBUG -CFLAGS=-Wall - default: $(CC) -c conditionals_j.c $(CFLAGS) $(FLAGS) $(CC) -c eval_expression_j.c $(CFLAGS) $(FLAGS)