Imported Makefile from www.infodrom.org
authorJoey Schulze <joey@infodrom.org>
Wed, 6 Aug 2003 13:08:10 +0000 (13:08 +0000)
committerJoey Schulze <joey@infodrom.org>
Wed, 6 Aug 2003 13:08:10 +0000 (13:08 +0000)
Makefile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..3050cd6
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,50 @@
+hostname=$(shell hostname)
+
+ifeq ($(hostname),finlandia)
+DEST = $(HOME)/public_html/new/infodrom
+TEST = $(HOME)/public_html/new/infodrom
+else
+ifeq ($(hostname),luonnotar)
+DEST = /var/www/www.infodrom.org
+TEST = $(HOME)/luonnotar_html/new/infodrom
+endif
+endif
+
+FILES = --exclude "CVS/" --exclude "*imgdot-1x1-transp-ffffff.gif" --exclude "*imgdot-1x1-transp.gif"
+ifeq ($(hostname),luonnotar)
+FILES+= --exclude Mail-Archive/ --exclude Infodrom/mailstats/
+endif
+FILES+= --include "*/"
+FILES+= --include "*.html" --include "*.shtml" --include "*.php3" --include "*.txt"  --include "*.ps"
+FILES+= --include "*.png" --include "*.gif" --include "*.jpg"
+FILES+= --include "Debian/support/debian.de/channel.xml"
+FILES+= --exclude "*"
+
+build:
+       make -C src all
+
+test:
+       test -d $(TEST) || mkdir -p $(TEST)
+       rsync -lptr $(FILES) src/ $(TEST)/
+#      cd src && for f in *.html; do cp $$f $(TEST)/$$f; done
+
+fix:
+
+install: fix
+       test -d $(DEST) || mkdir -p $(DEST)
+       rsync -lptr $(FILES) src/ $(DEST)/
+       rsync src/Mail-Archive/index.php3 /var/www/www.infodrom.org/Mail-Archive/index.php3
+       rsync src/Infodrom/mailstats/index.php3 /var/www/www.infodrom.org/Infodrom/mailstats/index.php3
+
+#      cd src && for f in *.html; do cp $$f $(DEST)/$$f; done
+ifeq ($(hostname),finlandia)
+       -cp src/imgdot-1x1-transp-ffffff.gif $(DEST)/gifs/imgdot-1x1-transp.gif
+endif
+
+clean:
+       -rm -f `find -name '*~'` `find -name '.?*.swp'`
+       -make -C src clean
+       -make -C Styles clean
+
+depend:
+       make -C src rdepend