forked from skx/sysadmin-util
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (24 loc) · 624 Bytes
/
Copy pathMakefile
File metadata and controls
31 lines (24 loc) · 624 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#
# Simple makefile, mostly to format and test the perl-code.
#
# The perltidy command uses the configuration file ~/.perltidyrc
# which you can find in my dotfiles repository:
#
# https://github.com/skx/dotfiles
#
# Steve
#
nop:
@echo ""
@echo "make clean - Remove backup files."
@echo "make critic - Run the perl code through perlcritic."
@echo "make tidy - Run the perl code through perltidy."
@echo ""
build: ipaddr.c
gcc -o ipaddr ipaddr.c -Wall -Werror
clean:
rm ipaddr *.bak *~ || true
critic:
perlcritic $$(grep -l '^#!/usr/bin/env perl' *)
tidy:
perltidy $$(grep -l '^#!/usr/bin/env perl' *)