default: # Valid commands: # # make build (builds the software and man page) # make test (builds sample.ps, which you can preview) # make sample (converts sample.ps to .pdf using GhostScript) # make install (installs opensched in /usr/local/bin) # make clean (deletes temporary files) # make backup (cleans then makes a source archive) # make gcc-dos (works with EMX, probably also DJGPP) # make browseman (read through the docs) # make printman (make PostScript through the docs) build: opensched manpage all: opensched printman test BINDIR=/usr/local/bin MANDIR=/usr/local/man/man1 install: opensched manpage install -o root -g 0 -m 755 src/opensched $(BINDIR) install -o root -g 0 -m 755 doc/opensched.1 $(MANDIR) browseman: manpage groff -t -man -Tlatin1 doc/opensched.1 | less printman: doc/opensched.1.ps doc/opensched.1.ps: manpage groff -t -man -Tps doc/opensched.1 > doc/opensched.ps manpage: doc/opensched.1 doc/opensched.1: doc/opensched.1.in sed "s/@VERSION@/`cat VERSION`/g" $< >$@ opensched: dummy # opensched: (cd src; ${MAKE} opensched) gcc-dos: dummy pushd src; ${MAKE} gcc-dos; popd backup: veryclean /bin/rm -rf opensched-`cat VERSION` /bin/mkdir opensched-`cat VERSION` (tar cf - `find . -type f -print|egrep -v '\.gz|opensched-|/contrib/|src/opensched'`) | (cd opensched-`cat VERSION`; tar xpf -) tar cfz archive/opensched-`cat VERSION`.tar.gz opensched-`cat VERSION`/* veryclean: clean /bin/rm -f opensched doc/opensched.1 /bin/rm -rf opensched-`cat VERSION` clean: testclean /bin/rm -f `find . -name '*.o'` /bin/rm -f `find . -name '*.aux'` /bin/rm -f `find . -name '*.dvi'` /bin/rm -f `find . -name '*.log'` /bin/rm -f `find . -name '*.ps'` /bin/rm -f `find . -name '*.pdf'` testclean: fixperm /bin/rm -f `find . -name 'sample_*' -or -name sample.ps -or -name sample.pdf -or -name sample.log -or -name sample.aux -or -name sample.dvi` /bin/rm -f `find . -name 'test_*' -or -name test.ps -or -name test.pdf -or -name test.log -or -name test.aux -or -name test.dvi` fixperm: /bin/chmod 644 `find . -type f` /bin/chmod 755 `find . -type d -or -name '*.sh' -or -name opensched` test: opensched dummy (cd test; ${MAKE} test) sample: opensched dummy (cd sample; ${MAKE} sample) dummy: