diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 46 |
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 |