Skip to content
Permalink
Browse files

make: cleanups

[ci skip]
  • Loading branch information...
simonmichael committed Mar 6, 2019
1 parent c175f02 commit 19e8af903f291d641c1a70a7ade1e70298c9e9e7
Showing with 4 additions and 12 deletions.
  1. +4 −12 Makefile
@@ -737,22 +737,14 @@ iscleanwd:
isclean-%:
@$(ISCLEAN) $* || (echo "please clean these files first: $*"; false)

setdate: $(call def-help,setdate, set date in manuals to current month and year )
perl -pe "s/^(m4_define\({{_monthyear_}}, *{{)[^}]*(}}\)m4_dnl *)$$/\$${1}$(MONTHYEAR)\$${2}/" -i doc/common.m4

updatedate: setdate $(call def-help,updatedate, set date in manuals to current month and year and commit )
git commit -m "bump manual date to $(MONTHYEAR)" doc/common.m4

# (re)generate a cabal file from its package.yaml definition
# XXX to avoid warnings, this hpack should be the same version as stack's built-in hpack
#%.cabal: $$(dir $$@)package.yaml
# hpack --silent $(dir $*)
# (re)generate a cabal files with stack's built-in hpack
gencabal: $(call def-help,gencabal, regenerate cabal files from package.yaml files with stack )
$(STACK) build --dry-run --silent
# --stack-yaml stack-ghc8.2.yaml

# (re)generate cabal files with hpack
# To avoid warnings, this hpack should be the same version as stack's built-in hpack
gencabal-with-hpack-%:
$(STACK) build --with-hpack hpack-$* --dry-run --silent --stack-yaml stack-ghc8.2.yaml
$(STACK) build --with-hpack hpack-$* --dry-run --silent

# updatecabal: gencabal $(call def-help,updatecabal, regenerate cabal files and commit )
# @read -p "please review changes then press enter to commit $(shell ls */*.cabal)"

0 comments on commit 19e8af9

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.