123 lines
3.8 KiB
Text
123 lines
3.8 KiB
Text
|
--- Makefile.orig Wed Jun 20 05:48:41 2001
|
||
|
+++ Makefile Mon Aug 20 11:19:22 2001
|
||
|
@@ -1,34 +1,9 @@
|
||
|
-# Makefile for StarPlot
|
||
|
+BINARYNAME = starplot
|
||
|
+CONVERTNAME = starconvert
|
||
|
+CFLAGS += -Wall `${GTK_CONFIG} --cflags`
|
||
|
+LFLAGS = `${GTK_CONFIG} --libs`
|
||
|
|
||
|
-# this is for easier debianizing:
|
||
|
-DESTDIR =
|
||
|
-TREEDIR = usr/local
|
||
|
-TOPDIR = $(DESTDIR)/$(TREEDIR)
|
||
|
-
|
||
|
-# installation locations: -----------------------------------------------
|
||
|
-export BINARYNAME = starplot
|
||
|
-export CONVERTNAME = starconvert
|
||
|
-export DATADIR = $(TOPDIR)/share/$(BINARYNAME)
|
||
|
-export DOCDIR = $(TOPDIR)/share/doc/$(BINARYNAME)
|
||
|
-INSTALLDIR = $(TOPDIR)/bin
|
||
|
-MANDIR = $(TOPDIR)/man/man1
|
||
|
-
|
||
|
-# locations of programs needed for compiling / installing:
|
||
|
-export CXX = g++
|
||
|
-export SED = sed
|
||
|
-INSTALL = install
|
||
|
-
|
||
|
-# compiler flags:
|
||
|
-export CFLAGS = -Wall -pedantic -O2
|
||
|
-LFLAGS = `gtk-config --libs`
|
||
|
-
|
||
|
-# targets ---------------------------------------------------------------
|
||
|
-
|
||
|
-.PHONY: all object-files conv-files doc-files starplot starconvert debian \
|
||
|
- clean dist-clean debian-clean install install-bin install-doc \
|
||
|
- install-debian install-examples install-gpl install-man uninstall
|
||
|
-
|
||
|
-all: object-files conv-files doc-files
|
||
|
+all: object-files conv-files
|
||
|
|
||
|
object-files:
|
||
|
$(MAKE) -C classes
|
||
|
@@ -38,79 +13,3 @@
|
||
|
conv-files:
|
||
|
$(MAKE) -C convert
|
||
|
$(CXX) convert/*.o classes/*.o -o $(CONVERTNAME) $(CFLAGS) -lm
|
||
|
-
|
||
|
-doc-files:
|
||
|
- $(MAKE) -C doc
|
||
|
-
|
||
|
-# The next two targets are not used by the default build and are just for
|
||
|
-# convenience if you only want to build one of the two programs.
|
||
|
-starplot: object-files
|
||
|
-starconvert:
|
||
|
- $(MAKE) -C classes
|
||
|
- $(MAKE) conv-files
|
||
|
-
|
||
|
-debian:
|
||
|
- dpkg-buildpackage -rfakeroot
|
||
|
-
|
||
|
-clean:
|
||
|
- $(MAKE) -C gui clean
|
||
|
- $(MAKE) -C classes clean
|
||
|
- $(MAKE) -C convert clean
|
||
|
-
|
||
|
-dist-clean: clean
|
||
|
- rm -f $(BINARYNAME) $(CONVERTNAME) build-stamp configure-stamp
|
||
|
- $(MAKE) -C doc clean
|
||
|
-
|
||
|
-debian-clean: dist-clean
|
||
|
- rm -rf debian/starplot/*
|
||
|
- rm -f debian/files debian/substvars
|
||
|
- rm -f debian/*.debhelper
|
||
|
-
|
||
|
-# install everything
|
||
|
-install: install-examples install-gpl
|
||
|
-
|
||
|
-# install only things relevant to creating a Debian package
|
||
|
-install-debian: install-examples install-doc
|
||
|
-
|
||
|
-# install just the binary and create an empty data directory
|
||
|
-install-bin:
|
||
|
- $(INSTALL) -d -m 0755 $(INSTALLDIR) $(DATADIR)
|
||
|
- $(INSTALL) -m 0755 -s $(BINARYNAME) $(INSTALLDIR)
|
||
|
- $(INSTALL) -m 0755 -s $(CONVERTNAME) $(INSTALLDIR)
|
||
|
-
|
||
|
-# install example star data files as well as the binary
|
||
|
-install-examples: install-bin
|
||
|
- $(INSTALL) -d -m 0755 $(DATADIR)/examples
|
||
|
- $(INSTALL) -m 0644 examples/*.stars $(DATADIR)/examples
|
||
|
-
|
||
|
-# install the text and HTML documentation only
|
||
|
-install-doc:
|
||
|
- $(INSTALL) -d -m 0755 $(DOCDIR) $(DOCDIR)/examples
|
||
|
- $(INSTALL) -m 0644 examples/example.spec $(DOCDIR)/examples
|
||
|
- $(INSTALL) -m 0644 README INSTALL Makefile $(DOCDIR)
|
||
|
- $(INSTALL) -d -m 0755 $(DOCDIR)/html $(DOCDIR)/html/images
|
||
|
- $(INSTALL) -m 0644 doc/html/*.html $(DOCDIR)/html
|
||
|
- $(INSTALL) -m 0644 doc/html/images/* $(DOCDIR)/html/images
|
||
|
-
|
||
|
-# install man pages too
|
||
|
-install-man: install-doc
|
||
|
- $(INSTALL) -d -m 0755 $(MANDIR)
|
||
|
- $(INSTALL) -m 0644 doc/man/starplot.1 $(MANDIR)/$(BINARYNAME).1
|
||
|
- $(INSTALL) -m 0644 doc/man/starconvert.1 $(MANDIR)/$(CONVERTNAME).1
|
||
|
-
|
||
|
-# install the GPL as well as the docs
|
||
|
-# (this is separate since most people already have more than enough copies
|
||
|
-# of the GPL lying around on their hard drives)
|
||
|
-install-gpl: install-man
|
||
|
- $(INSTALL) -m 0644 COPYING $(DOCDIR)
|
||
|
-
|
||
|
-# You can uninstall StarPlot even after deleting the source tree because
|
||
|
-# this Makefile will have been installed in $(DOCDIR).
|
||
|
-
|
||
|
-uninstall:
|
||
|
- -rm -f $(INSTALLDIR)/$(BINARYNAME) $(INSTALLDIR)/$(CONVERTNAME)
|
||
|
- -rm -rf $(DATADIR)/examples
|
||
|
- -rmdir $(DATADIR)
|
||
|
- -rm -rf $(DOCDIR)
|
||
|
- -rm -f $(MANDIR)/$(BINARYNAME).* $(MANDIR)/$(CONVERTNAME).*
|
||
|
-
|