summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-01-15 21:58:41 +0000
committerLennart Poettering <lennart@poettering.net>2005-01-15 21:58:41 +0000
commit836305f518d6f7d84b3b23461586043369c8e908 (patch)
tree9c9d162cd593cb7b550e71124e29a7d881400708 /Makefile
parentb73ba72e71334f396175c68e060ea13db0ce6b8a (diff)
parent2413614d3bc435cd09e425fa34068e4a333f0495 (diff)
rename heatload to trunk
git-svn-id: file:///home/lennart/svn/public/heatload/trunk@7 3bca8330-beed-0310-b360-ea58cfc96e4b
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile46
1 files changed, 46 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..2f96dd2
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,46 @@
+VERSION=0.3
+CXXFLAGS=-Wall -W -pipe -O2 -g -DVERSION=\"$(VERSION)\" `pkg-config --cflags gtkmm-2.4 gdkmm-2.4`
+TAR=heatload-$(VERSION).tar.gz
+SOURCES=heatload.cc
+BINARY=heatload
+LIBS=`pkg-config --libs gtkmm-2.4 gdkmm-2.4`
+PACKAGE=heatload
+
+all: $(BINARY)
+
+$(BINARY): $(SOURCES)
+ $(CXX) $(CXXFLAGS) $(SOURCES) -o $(BINARY) $(LIBS)
+
+strip: $(BINARY)
+ @du -h $(BINARY)
+ strip -s $(BINARY)
+ @du -h $(BINARY)
+
+clean:
+ rm -f $(BINARY)
+ rm -f *~ *.bak *.tar.gz
+
+install: strip
+ install -g root -o root -m 555 $(BINARY) /usr/local/bin
+
+deinstall:
+ rm -f /usr/local/bin/$(BINARY)
+
+README: README.in
+ sed s/VERSION/$(VERSION)/ < README.in > README
+
+index.html: README
+ txt2html -t "$(PACKAGE) $(VERSION)" < README > index.html
+
+html: index.html
+
+$(TAR): clean README
+ tar -C.. --exclude=$(PACKAGE)/$(TAR) -czvf $(TAR) $(PACKAGE)
+
+tar: $(TAR)
+
+web: $(TAR) README
+ cp README $(TAR) ../../homepage/lennart/projects/$(PACKAGE)/ && $(MAKE) -C ../../homepage/lennart/projects/$(PACKAGE)
+
+upload: web
+ $(MAKE) -C ../../homepage/lennart upload