Makefile: moved backup to its own target
This commit is contained in:
parent
0507155ef2
commit
d049baf8a4
4
Makefile
4
Makefile
|
@ -14,9 +14,11 @@ test: makeconf
|
|||
$(info checking configuration for errors and possible optimizations)
|
||||
nft -c -o -f $(SRC)$(NFT)
|
||||
|
||||
install: test
|
||||
backup:
|
||||
$(info backing up current nftables rules)
|
||||
cp /etc/nftables.conf $(SRC)backup.conf || nft list ruleset > $(SRC)backup.conf
|
||||
|
||||
install: test backup
|
||||
$(info installing new nftables rules)
|
||||
cp $(SRC)$(NFT) /etc/nftables.conf
|
||||
$(info reloading nftables rules)
|
||||
|
|
Loading…
Reference in New Issue