Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

more flexible Makefile #23

Open
landroni opened this issue Feb 4, 2013 · 0 comments
Open

more flexible Makefile #23

landroni opened this issue Feb 4, 2013 · 0 comments

Comments

@landroni
Copy link

landroni commented Feb 4, 2013

I'm currently working on debianizing ipad-charge and eventually setting up a PPA for daily builds and I've run into an issue with the Makefile. As it is, it is not possible to install to custom locations, something that breaks down Debian packaging scripts.

I would suggest using something along the lines of:
prefix = /usr
prefix_config = /etc
bindir = $(prefix)/bin
udevdir = $(prefix_config)/udev/rules.d/

install: ipad_charge
install -m 755 -o root -g root -d $(bindir)
install -m 755 -o root -g root -d $(udevdir)
install -m 755 -o root -g root ipad_charge $(bindir)/
install -m 644 -o root -g root 95-ipad_charge.rules $(udevdir)/
install -o root -g root -m 755 ipad_charge
install -o root -g root -m 644 95-ipad_charge.rules /etc/udev/rules.d/

This would allow to:
make --prefix=debian/usr --prefix_config=debian/etc install

What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant