diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2022-03-07 14:43:44 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2022-03-07 14:43:44 +0100 |
commit | cbcab8684e06379c9f5c51cfc9cac68d8684fe0c (patch) | |
tree | d03b04e9a7f8e3aae70e590953408f90deed077c /old/skeletons/Makefile.lou.erb | |
parent | 721a7ea65d23e7b149ba73968a1d75727a55b390 (diff) | |
download | vim-cbcab8684e06379c9f5c51cfc9cac68d8684fe0c.zip vim-cbcab8684e06379c9f5c51cfc9cac68d8684fe0c.tar.gz |
move to old
Diffstat (limited to 'old/skeletons/Makefile.lou.erb')
-rw-r--r-- | old/skeletons/Makefile.lou.erb | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/old/skeletons/Makefile.lou.erb b/old/skeletons/Makefile.lou.erb new file mode 100644 index 0000000..bb2cec6 --- /dev/null +++ b/old/skeletons/Makefile.lou.erb @@ -0,0 +1,39 @@ + +# USER VAR +MAIN=file_name +LOUT_FILES=${MAIN}.lou +# + +LOUT_MAIN=${MAIN}.lou +PSNAME=${MAIN}.ps +PDFNAME=${MAIN}.pdf + +AWK=gawk +LOUT=lout +PS2PDF=ps2pdf + +.SUFFIXES: .lout .lou + +all: $(PSNAME) $(PDFNAME) + +utf8_lat1: + @( \ + echo '#! /bin/sh'; \ + echo 'file $$1 | grep UTF-8 >/dev/null'; \ + echo 'if [ $$? -eq 0 ]; then'; \ + echo ' iconv --from utf8 --to iso88591 $$1 > $$(basename $$1 .lou).lat1'; \ + echo 'else'; \ + echo ' cp $$1 $$(basename $$1 .lou).lat1'; \ + echo 'fi'; \ + ) > utf8_lat1 + @chmod 755 utf8_lat1 + +$(PSNAME): utf8_lat1 $(LOUT_FILES) + $(LOUT) -r3 -o $(PSNAME) $(LOUT_MAIN) + +$(PDFNAME): $(PSNAME) + $(PS2PDF) $(PSNAME) + +clean: + @rm *.ps *.ld *.li *.lix *.lat1 *~ utf8_lout utf8_lat1 2>/dev/null + |