diff options
| author | Rafael Laboissière <rafael@laboissiere.net> | 2025-09-06 20:41:16 +0200 |
|---|---|---|
| committer | Rafael Laboissière <rafael@laboissiere.net> | 2025-09-06 20:41:16 +0200 |
| commit | e80abf05697c5615cfe85425fc36c971fbfe660b (patch) | |
| tree | a21aee114b733e44e6601224d7e6978c77dcdff2 /Makefile | |
| parent | 8970c5d9dfc0e84e429dc9827b41a26d9be0b36c (diff) | |
Do global substitutions in sed
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -27,12 +27,12 @@ install-www: build-stamp sudo service apache2 restart %: %.in - sed -e 's|@WWWHOST@|$(WWWHOST)|;' \ - -e 's|@WWWDIR@|$(WWWDIR)|;' \ - -e 's|@INDEX@|$(INDEX)|;' \ - -e 's|@GPGKEY@|$(GPGKEY)|;' \ - -e 's|@TODAY@|$(TODAY)|;' \ - -e 's|@DISTRIB@|$(DISTRIB)|;' $< > $@ + sed -e 's|@WWWHOST@|$(WWWHOST)|g;' \ + -e 's|@WWWDIR@|$(WWWDIR)|g;' \ + -e 's|@INDEX@|$(INDEX)|g;' \ + -e 's|@GPGKEY@|$(GPGKEY)|g;' \ + -e 's|@TODAY@|$(TODAY)|g;' \ + -e 's|@DISTRIB@|$(DISTRIB)|g;' $< > $@ .PHONY: clean clean: |
