mirror of
https://github.com/colindean/optar.git
synced 2025-03-11 22:17:40 +13:00
Compare commits
No commits in common. "master" and "1.0.0-colindean" have entirely different histories.
master
...
1.0.0-coli
16
Makefile
16
Makefile
@ -22,9 +22,6 @@ ARCHIVE_PATH=optar-$(VERSION)-$(OS)-$(ARCH).tar.gz
|
||||
BINARIES=optar unoptar
|
||||
EXECUTABLES=$(BINARIES) pgm2ps
|
||||
|
||||
ARCHIVE_PATH_TAR=$(ARCHIVE_PATH).tar
|
||||
ARCHIVE_PATH_PDF=$(ARCHIVE_PATH_TAR).pdf
|
||||
|
||||
all: optar unoptar
|
||||
|
||||
install:
|
||||
@ -39,8 +36,6 @@ uninstall:
|
||||
|
||||
clean:
|
||||
rm -f $(BINARIES) optar-*.tar.gz golay_codes.c *.o
|
||||
rm -f $(ARCHIVE_PATH_PDF) $(ARCHIVE_PATH_TAR)
|
||||
rm -f *.pgm *.ps
|
||||
|
||||
common.o: common.c optar.h
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $<
|
||||
@ -74,14 +69,5 @@ unoptar: unoptar.o common.o golay_codes.o parity.o
|
||||
|
||||
archive: $(ARCHIVE_PATH)
|
||||
|
||||
$(ARCHIVE_PATH): $(EXECUTABLES) COPYING README.md
|
||||
$(ARCHIVE_PATH): $(EXECUTABLES)
|
||||
tar czvf $@ $^
|
||||
|
||||
archive_pdf: $(ARCHIVE_PATH_PDF)
|
||||
|
||||
$(ARCHIVE_PATH_PDF): $(ARCHIVE_PATH) optar
|
||||
#This is necessary because tar can be 0-padded and gzip cannot
|
||||
tar cvf $(ARCHIVE_PATH_TAR) $<
|
||||
./optar $(ARCHIVE_PATH_TAR) $(ARCHIVE_PATH_TAR)
|
||||
./pgm2ps *.pgm
|
||||
convert -density 600x600 -quality 100 *.ps $@
|
||||
|
Loading…
x
Reference in New Issue
Block a user