command-line CSV to LaTeX file converter.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

19 lines
565 B

PROGNAME=csv2latex
PREFIX=/usr
BINDIR=$(PREFIX)/bin
MANDIR=$(PREFIX)/share/man/man1
CFLAGS=-Wall -Wextra -pedantic -Os
GZIP=gzip --to-stdout
all:
$(CC) $(CPPFLAGS) $(CFLAGS) $(PROGNAME).c $(LDFLAGS) -o $(PROGNAME)
$(GZIP) $(PROGNAME).1 > $(PROGNAME).1.gz
install:
install $(PROGNAME) ${DESTDIR}$(BINDIR)/$(PROGNAME)
install -D $(PROGNAME).1.gz ${DESTDIR}$(MANDIR)/$(PROGNAME).1.gz
uninstall:
$(RM) ${DESTDIR}$(BINDIR)/$(PROGNAME)
$(RM) ${DESTDIR}$(MANDIR)/$(PROGNAME).1.gz
clean:
$(RM) $(PROGNAME)
$(RM) $(PROGNAME).1.gz
# vim:set ts=8 sw=8 noexpandtab et: